

//存储token
export  default {
    set(key:string,data:any):void{
        let cache={data}
        localStorage.setItem(key,JSON.stringify(cache))
    },

    get(key:string):any{
      const cacheStore =localStorage.getItem(key)
if(cacheStore){
  const cache= JSON.parse(cacheStore)
  return cache.data
}
return null
  
    },
    remove(key: string) {
        localStorage.removeItem(key)
      },
}